﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FriendAnalyzer.Graph
{
    public class Point
    {
        public double X;
        public double Y;
        public Point(double X,double Y)
        {
            this.X = X;
            this.Y = Y;
        }
        public static Point Empty
        {
            get
            {
                return new Point(0, 0);
            }
        }
    }
    public class Size
    {
        public double size;
        public Size(double size)
        {
            this.size = size;
        }
        
    }
    public class Rectangle
    {
        public double X;
        public double Y;
        public double X1;
        public double Y1;
        public Rectangle(double x, double y, double x1, double y1)
        {
            X = x;
            Y = y;
            X1 = x1;
            Y1 = y1;
        }
        public double Width
        {
            get
            {
                return Math.Abs(X1 - X);
            }
        }
        public double Height
        {
            get
            {
                return  Math.Abs(Y1 - Y);
            }
        }
    }
}
